package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * 分享模板信息
 */
@MappingTable(tableName = "ERP_SHARE_TEMPLATE")
public class ShareTemplate extends BaseObject {

	private static final long serialVersionUID = 9153931618492965353L;

	@MappingColumn(columnName = "SHARE_ID", columnPk = true, columnLength = 32)
	private String shareId; // 分享Id

	@MappingColumn(columnName = "USER_ID")
	private String userId; // 用户Id

	@MappingTable(tableName = "ERP_USER")
	private User user; // 用户信息

	@MappingColumn(columnName = "SHOP_ID")
	private String shopId; // 商铺Id

	@MappingTable(tableName = "ERP_SHOP")
	private Shop shop; // 商铺信息

	@MappingColumn(columnName = "SHARE_TITLE")
	private String shareTitle; // 标题

	@MappingColumn(columnName = "SHARE_REMARK")
	private String shareRemark; // 备注

	@MappingColumn(columnName = "SHARE_FILE_URL")
	private String shareFileUrl; // 文件地址

	@MappingColumn(columnName = "SHARE_CREATE_TIME")
	private Date shareCreateTime; // 创建时间

	private String[] carIds; // 车辆Id数组

	private List<Car> cars; // 分享的车辆列表信息

	public String getShareId() {
		return shareId;
	}

	public void setShareId(String shareId) {
		this.shareId = shareId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

	public String getShareTitle() {
		return shareTitle;
	}

	public void setShareTitle(String shareTitle) {
		this.shareTitle = shareTitle;
	}

	public String getShareRemark() {
		return shareRemark;
	}

	public void setShareRemark(String shareRemark) {
		this.shareRemark = shareRemark;
	}

	public String getShareFileUrl() {
		return shareFileUrl;
	}

	public void setShareFileUrl(String shareFileUrl) {
		this.shareFileUrl = shareFileUrl;
	}

	public Date getShareCreateTime() {
		return shareCreateTime;
	}

	public void setShareCreateTime(Date shareCreateTime) {
		this.shareCreateTime = shareCreateTime;
	}

	public String[] getCarIds() {
		return carIds;
	}

	public void setCarIds(String[] carIds) {
		this.carIds = carIds;
	}

	public List<Car> getCars() {
		return cars;
	}

	public void setCars(List<Car> cars) {
		this.cars = cars;
	}
}
